Optimal. Leaf size=45 \[ \frac {(f+g x) \log \left (c \left (d+\frac {e}{f+g x}\right )^q\right )}{g}+\frac {e q \log (e+d (f+g x))}{d g} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 45, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2533, 2498,
269, 31} \begin {gather*} \frac {(f+g x) \log \left (c \left (d+\frac {e}{f+g x}\right )^q\right )}{g}+\frac {e q \log (d (f+g x)+e)}{d g} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 269
Rule 2498
Rule 2533
Rubi steps
\begin {align*} \int \log \left (c \left (d+\frac {e}{f+g x}\right )^q\right ) \, dx &=\frac {\text {Subst}\left (\int \log \left (c \left (d+\frac {e}{x}\right )^q\right ) \, dx,x,f+g x\right )}{g}\\ &=\frac {(f+g x) \log \left (c \left (d+\frac {e}{f+g x}\right )^q\right )}{g}+\frac {(e q) \text {Subst}\left (\int \frac {1}{\left (d+\frac {e}{x}\right ) x} \, dx,x,f+g x\right )}{g}\\ &=\frac {(f+g x) \log \left (c \left (d+\frac {e}{f+g x}\right )^q\right )}{g}+\frac {(e q) \text {Subst}\left (\int \frac {1}{e+d x} \, dx,x,f+g x\right )}{g}\\ &=\frac {(f+g x) \log \left (c \left (d+\frac {e}{f+g x}\right )^q\right )}{g}+\frac {e q \log (e+d (f+g x))}{d g}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 56, normalized size = 1.24 \begin {gather*} \frac {-d f q \log (f+g x)+(e+d f) q \log (e+d f+d g x)+d g x \log \left (c \left (d+\frac {e}{f+g x}\right )^q\right )}{d g} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.05, size = 71, normalized size = 1.58
method | result | size |
default | \(\ln \left (c \left (\frac {d g x +d f +e}{g x +f}\right )^{q}\right ) x +e g q \left (\frac {\left (d f +e \right ) \ln \left (d g x +d f +e \right )}{e \,g^{2} d}-\frac {f \ln \left (g x +f \right )}{g^{2} e}\right )\) | \(71\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 67, normalized size = 1.49 \begin {gather*} -g q {\left (\frac {f e^{\left (-1\right )} \log \left (g x + f\right )}{g^{2}} - \frac {{\left (d f + e\right )} e^{\left (-1\right )} \log \left (d g x + d f + e\right )}{d g^{2}}\right )} e + x \log \left (c {\left (d + \frac {e}{g x + f}\right )}^{q}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.34, size = 70, normalized size = 1.56 \begin {gather*} \frac {d g q x \log \left (\frac {d g x + d f + e}{g x + f}\right ) - d f q \log \left (g x + f\right ) + d g x \log \left (c\right ) + {\left (d f q + q e\right )} \log \left (d g x + d f + e\right )}{d g} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 102 vs.
\(2 (36) = 72\).
time = 0.65, size = 102, normalized size = 2.27 \begin {gather*} \begin {cases} x \log {\left (c \left (\frac {e}{f}\right )^{q} \right )} & \text {for}\: d = 0 \wedge g = 0 \\\frac {f \log {\left (c \left (\frac {e}{f + g x}\right )^{q} \right )}}{g} + q x + x \log {\left (c \left (\frac {e}{f + g x}\right )^{q} \right )} & \text {for}\: d = 0 \\x \log {\left (c \left (d + \frac {e}{f}\right )^{q} \right )} & \text {for}\: g = 0 \\\frac {f \log {\left (c \left (d + \frac {e}{f + g x}\right )^{q} \right )}}{g} + x \log {\left (c \left (d + \frac {e}{f + g x}\right )^{q} \right )} + \frac {e q \log {\left (d f + d g x + e \right )}}{d g} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 172 vs.
\(2 (48) = 96\).
time = 8.94, size = 172, normalized size = 3.82 \begin {gather*} \frac {{\left (d f g e^{\left (-2\right )} - {\left (d f + e\right )} g e^{\left (-2\right )}\right )} {\left (d q e^{2} \log \left (-d + \frac {d g x + d f + e}{g x + f}\right ) + d e^{2} \log \left (c\right ) - \frac {{\left (d g x + d f + e\right )} q e^{2} \log \left (-d + \frac {d g x + d f + e}{g x + f}\right )}{g x + f} + \frac {{\left (d g x + d f + e\right )} q e^{2} \log \left (\frac {d g x + d f + e}{g x + f}\right )}{g x + f}\right )}}{d^{2} g^{2} - \frac {{\left (d g x + d f + e\right )} d g^{2}}{g x + f}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.18, size = 67, normalized size = 1.49 \begin {gather*} x\,\ln \left (c\,{\left (d+\frac {e}{f+g\,x}\right )}^q\right )-\frac {f\,q\,\ln \left (f+g\,x\right )}{g}+\frac {f\,q\,\ln \left (e+d\,f+d\,g\,x\right )}{g}+\frac {e\,q\,\ln \left (e+d\,f+d\,g\,x\right )}{d\,g} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________